package bb.lanxing.util.thread;

public abstract class BaseTaskWithCallBack<T> implements Runnable {
    protected OnGetResultListener onGetResultListener;

    public interface OnGetResultListener<T> {
        void getResult(boolean flag, T result);
    }

    @Override
    public abstract void run();

    public void setOnGetResultListener(OnGetResultListener onGetResultListener) {
        this.onGetResultListener = onGetResultListener;
    }
}
